package com.dsbridge.bank.business;

import java.sql.SQLException;
import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.dsbridge.bank.model.Customer;

public interface CustomerBusinessServiceInterface {

	@Transactional(propagation = Propagation.REQUIRED)
	public abstract Customer insert(Customer c) throws Exception;

	@Transactional(propagation = Propagation.REQUIRED)
	public abstract Customer update(Customer c) throws SQLException;

	@Transactional(propagation = Propagation.REQUIRED)
	public abstract Customer delete(Customer c) throws SQLException;

	@Transactional(propagation = Propagation.REQUIRED)
	public abstract Customer retrieveCustomerbyTaxid(int i)
			throws SQLException;
	public abstract List<Customer>showAllCustomer();
}